package com.azzcs.mvc.mav;

import com.azzcs.spring.anno.Component;

/**
 * @Author: wzg
 * @Date: 2020/12/29 下午2:50
 */
@Component
public class SimpleViewResolver implements ViewResolver{

    @Override
    public View resolveViewName(String viewName) {
        if(viewName.equals("success")) {
            return new SimpleView();
        }
        return null;
    }
}
